package com.yidusoft.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by you on 2017/7/17.
 */
@Controller
public class IndexController {

    /**
     * 跳转到主页
     * @return
     */
    @RequestMapping(value ="/index")
    public String main(){
        return  "index";
    }

    @RequestMapping("/403")
    public String forbidden(){
        return "/error/403";
    }

    @RequestMapping("/404")
    public String notFound(){
        return "/error/404";
    }

    @RequestMapping(value = {"/500","/error"})
    public String error(){
        return "/error/500";
    }

    @RequestMapping(value ="")
    public String login(){
        return  "index";
    }
}
